package com.hsteach.web.controller.cookmenu.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "SemWeek", description = "周次")
@Data
public class SemWeek implements Serializable {

    @ApiModelProperty(value = "周次开始日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginDay;

    @ApiModelProperty(value = "周次结束日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDay;

    @ApiModelProperty(value = "第几周，从1开始", required = true)
    private Integer weekIndex;

    @ApiModelProperty(value = "星期几开始，1代表星期一", required = true)
    private Integer beginDayOfWeek;

    @ApiModelProperty(value = "星期几结束", required = true)
    private Integer endDayOfWeek;

    @ApiModelProperty(value = "是否为当前周", required = true)
    @JsonIgnore
    private boolean selected;
}
